/**
 * jims
 */
package com.jims.master.modules.operation.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

import java.util.List;

/**
 * 手术安排项目Entity
 * @author DT
 * @version 2017-04-14
 */
public class OperationNameBefore extends DataEntity<OperationNameBefore> {
	
	private static final long serialVersionUID = 1L;
	private String scheduleId;		// 手术安排主表id
	private String srot;		// 手术序号
	private String operationName;		// 手术名称
	private String operationId;		// 手术ID
	private String operationCode;		// 手术ICD9编码
	private String operationScale;		// 手术等级
	private String woundGrade;		// 切口等级
    private OperationNameApply operationNameApply;

    public OperationNameApply getOperationNameApply() {
        return operationNameApply;
    }

    public void setOperationNameApply(OperationNameApply operationNameApply) {
        this.operationNameApply = operationNameApply;
    }

    private List<OperationNameApply> operationNameApplys;//手术项目

    public List<OperationNameApply> getOperationNameApplys() {
        return operationNameApplys;
    }

    public void setOperationNameApplys(List<OperationNameApply> operationNameApplys) {
        this.operationNameApplys = operationNameApplys;
    }

    public OperationNameBefore() {
		super();
	}

	public OperationNameBefore(String id){
		super(id);
	}

	@Length(min=1, max=64, message="手术安排主表id长度必须介于 1 和 64 之间")
	public String getScheduleId() {
		return scheduleId;
	}

	public void setScheduleId(String scheduleId) {
		this.scheduleId = scheduleId;
	}
	
	@Length(min=0, max=11, message="手术序号长度必须介于 0 和 11 之间")
	public String getSrot() {
		return srot;
	}

	public void setSrot(String srot) {
		this.srot = srot;
	}
	
	@Length(min=1, max=64, message="手术名称长度必须介于 1 和 64 之间")
	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}
	
	@Length(min=1, max=100, message="手术ID长度必须介于 1 和 100 之间")
	public String getOperationId() {
		return operationId;
	}

	public void setOperationId(String operationId) {
		this.operationId = operationId;
	}
	
	@Length(min=0, max=100, message="手术ICD9编码长度必须介于 0 和 100 之间")
	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}
	
	@Length(min=1, max=2, message="手术等级长度必须介于 1 和 2 之间")
	public String getOperationScale() {
		return operationScale;
	}

	public void setOperationScale(String operationScale) {
		this.operationScale = operationScale;
	}
	
	@Length(min=1, max=2, message="切口等级长度必须介于 1 和 2 之间")
	public String getWoundGrade() {
		return woundGrade;
	}

	public void setWoundGrade(String woundGrade) {
		this.woundGrade = woundGrade;
	}
	

	
}